import fetch from './fetch'

// 登录
export const login = params => fetch('/mall/login/doLoginByPassword', params, "POST")


// 查找总店
export const shopQuery = params => fetch('/mall/store/query', params, "POST")

// 新增总店
export const shopSave = params => fetch('/mall/store/save', params, "POST")

// 更新总店
export const shopUpdata = params => fetch('/mall/store/update', params, "POST")

// 删除总店
export const shopDelete = params => fetch('/mall/store/delete', params, "POST")

// 添加公告
export const noticeAdd = params => fetch('/mall/notice/add', params, "POST")

// 添加公告
export const noticeQuery = params => fetch('/mall/notice/query', params, "POST")

// 添加公告
export const noticeDelete = params => fetch("/mall/notice/delete", params)

// 添加分类
export const storeTypeSave = params => fetch("/mall/storeType/save", params, "POST")

// 获取商铺分类
export const storeTypeQueryAll = params => fetch("/mall/storeType/queryAll", params)

// 删除商户分类
export const storeTypeDelete = params => fetch("/mall/storeType/delete", params, "POST")